<!DOCTYPE html>
<html>
<head>
	<meta charset="UTF-8">
	<title>年月日期选择demo</title>
	<link rel="stylesheet" href="https://www.77bi.vip/res/extjs6.0/classic/theme-crisp/resources/theme-crisp-all.css"></link>
	<script src="https://www.77bi.vip/res/extjs6.0/ext-all.js"></script>
	<script src="https://www.77bi.vip/res/extjs6.0/classic/locale/locale-zh_CN.js"></script>
	<script type="text/javascript" src="/hr-web/resource/plugins/date-year-month/date-month-year.js"></script>
	<script type="text/javascript">
		Ext.onReady(function () {
			Ext.create('Ext.ux.MonthPicker', {
				format: 'Y-m',
				fieldLabel: '只选年月',
				renderTo: Ext.getBody()
			});
			Ext.create('Ext.ux.form.YearField', {
				format: 'Y',
				fieldLabel: '只选年',
				renderTo: Ext.getBody()
			});
		});

	</script>
</head>

<body>
</body>

</html>